from django.contrib import admin

# Register your models here.
from goods.models import (
    HuaweiCategory,
    HuaweiSubCateGory,
    HuaweiGoods,
    HuaweiGoodsDetialImgList,
    HuaweiGoodContentImageList,
    HuaweiGoodDetialInfos,
)


@admin.register(HuaweiCategory)
class HuaweiCategoryAdmin(admin.ModelAdmin):
    list_display = ["pk", "categoryName"]


@admin.register(HuaweiSubCateGory)
class HuaweiSubCateGoryAdmin(admin.ModelAdmin):
    list_display = ["pk", "subCategoryName", "parentCategory"]


@admin.register(HuaweiGoods)
class HuaweiGoodsAdmin(admin.ModelAdmin):
    list_display = [
        "pk",
        "goodName",
        "goodCoverImg",
        "goodPrice",
        "goodDetailNmae",
        "goodCategory",
        "goodNums",
        "goodClickNums",
        "goodSoldNums",
        "goodShipFree",
        "goodFavNums",
        "good_is_new",
        "good_is_hot",
        "good_is_oncounting",
        "good_add_time",
    ]


@admin.register(HuaweiGoodsDetialImgList)
class HuaweiGoodsDetialImgListAdmin(admin.ModelAdmin):
    list_display = ["pk", "images", "imagessmall", "goods"]


@admin.register(HuaweiGoodContentImageList)
class HuaweiGoodContentImageListAdmin(admin.ModelAdmin):
    list_display = ["pk", "images", "goods"]


@admin.register(HuaweiGoodDetialInfos)
class HuaweiGoodDetialInfosAdmin(admin.ModelAdmin):
    list_display = ["pk", "detailName", "detialValue", "goods"]

